package com.ys.service.mail;

import java.util.List;

import com.ys.dto.DtreeSqlDto;
import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface MailGroupService {
	
	R add(String name);
	
	R edit(Long id, String name);

	DtreeSqlDto dtree();
	
	R listUser(Long groupId);
	@Data
	@AllArgsConstructor
	public class ListUserDto {
		private List<RowDto> rows;

		@Data
		@AllArgsConstructor
		public static class RowDto {
			private String userId;
		}
	}
	
	R addUsers(Long groupId, String userArr);
}